<?php
if($_SERVER["PHP_SELF"] != $CONFIG['phpself'])
exit();
?>
<div class="divblocktype"><h2><?php echo $ADMIN_BLOCKDIV_TYPE[$Lang]; ?></h2></div>
<input name="typeofachievement" onClick="afficher('divkill');" value="kill" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="kill") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_KILL[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divhurt');" value="hurt" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="hurt") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_HURT[$Lang]; ?><br/>
<?php if($GET_VAR_PART!=1) 
{?>
<input name="typeofachievement" onClick="afficher('divcondition');" value="condition" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="condition") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_CONDITION[$Lang]; ?>(part <?php
$i = $GET_VAR_PART_MOINS_1;
while($_SESSION['AchTypeofAchievement'][$i] == "condition" && $_SESSION['AchTypeofAchievement'][$i] == "none")
{
	echo $_SESSION['AchTypeofAchievement'][$i];
	$i--;
}
$i = $i + 1; echo $i;
$i = $i - 1;
 ?> : <?php echo $_SESSION['AchTypeofAchievement'][$i]; ?>)<br/>
<?php
} ?>
<input name="typeofachievement" onClick="afficher('divengineer');" value="engineer" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="engineer") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_ENGI[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divheavy');" value="heavy" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="heavy") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_HEAV[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divsniper');" value="sniper" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="sniper") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_SNIP[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divmedic');" value="medic" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="medic") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_MEDI[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divscout');" value="scout" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="scout") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_SCOU[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divdemoman');" value="demoman" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="demoman") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_DEMOMAN[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divsoldier');" value="soldier" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="soldier") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_SOLDIER[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divspy');" value="spy" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="spy") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_SPY[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divmap');" value="map" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="map") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_MAPS[$Lang]; ?><br/>
<input name="typeofachievement" onClick="afficher('divfun');" value="fun" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="fun") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_FUNS[$Lang]; ?><br/><br/>
<?php if($GET_VAR_PART!=1)
{?><input name="typeofachievement" value="none" type="radio" <?php if($_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="none" || $_SESSION['AchTypeofAchievement'][$GET_VAR_PART] =="") echo 'checked="checked"';?>><?php echo $ADMIN_BLOCKDIV_NONE[$Lang]; ?><br/><br/>
<?php
} ?>
<script type="text/javascript">
function afficher(id)
{
	//alert(document.getElementById(id).style.visibility);
	if(document.getElementById(id).style.visibility=="hidden" || document.getElementById(id).style.visibility=="")
	{
	document.getElementById(id).style.visibility="visible";
	document.getElementById(id).style.display="block";
	}
	else{
	document.getElementById(id).style.visibility="hidden";
	document.getElementById(id).style.display="none";
	}
	
	if(id != "divkill")
	{
	document.getElementById("divkill").style.visibility="hidden";
	document.getElementById("divkill").style.display="none";
	}
	if(id != "divhurt")
	{
	document.getElementById("divhurt").style.visibility="hidden";
	document.getElementById("divhurt").style.display="none";
	}
	if(id != "divengineer")
	{
	document.getElementById("divengineer").style.visibility="hidden";
	document.getElementById("divengineer").style.display="none";
	
	}
	if(id != "divheavy")
	{
	document.getElementById("divheavy").style.visibility="hidden";
	document.getElementById("divheavy").style.display="none";
	
	}
	if(id != "divsniper")
	{
	document.getElementById("divsniper").style.visibility="hidden";
	document.getElementById("divsniper").style.display="none";
	}
	if(id != "divscout")
	{
	document.getElementById("divscout").style.visibility="hidden";
	document.getElementById("divscout").style.display="none";
	}
	if(id != "divmedic")
	{
	document.getElementById("divmedic").style.visibility="hidden";
	document.getElementById("divmedic").style.display="none";
	}
	if(id != "divmap")
	{
	document.getElementById("divmap").style.visibility="hidden";
	document.getElementById("divmap").style.display="none";
	}
	if(id != "divfun")
	{
	document.getElementById("divfun").style.visibility="hidden";
	document.getElementById("divfun").style.display="none";
	}
	if(id != "divcondition")
	{
	document.getElementById("divcondition").style.visibility="hidden";
	document.getElementById("divcondition").style.display="none";
	}
	if(id != "divspy")
	{
	document.getElementById("divspy").style.visibility="hidden";
	document.getElementById("divspy").style.display="none";
	}
	if(id != "divsoldier")
	{
	document.getElementById("divsoldier").style.visibility="hidden";
	document.getElementById("divsoldier").style.display="none";
	}
	if(id != "divdemoman")
	{
	document.getElementById("divdemoman").style.visibility="hidden";
	document.getElementById("divdemoman").style.display="none";
	}
}
</script>